package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.CustomerReturnList;
import com.atguigu.jxc.entity.CustomerReturnListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName: CustomerReturnListGoodsDao
 * Description:
 * Date: 2022/1/18 8:44
 *
 * @version:
 * @since JDK 1.8
 */
@Repository
public interface CustomerReturnListGoodsDao {

    void saveCustomerReturnList(@Param("customerReturnList") CustomerReturnList customerReturnList);

    CustomerReturnList selectByReturnNumber(@Param("returnNumber") String returnNumber);

    void saveCustomerReturnListGoods(@Param("customerReturnListGoods")CustomerReturnListGoods customerReturnListGoods);

    List<CustomerReturnList> getCustomerReturnListGoods(@Param("returnNumber")String returnNumber,@Param("customerId") Integer customerId,@Param("state") Integer state, @Param("sTime")String sTime,@Param("eTime") String eTime);

    List<CustomerReturnListGoods> getGoodsList(@Param("customerReturnListId") Integer customerReturnListId);

    void deleteCustomerReturnList(@Param("customerReturnListId")Integer customerReturnListId);

    void deleteCustomerReturnListGoods(@Param("customerReturnListId")Integer customerReturnListId);

    List<Integer> getGoodsList1(@Param("goodsTypeId")Integer goodsTypeId,@Param("codeOrName") String codeOrName);
}
